package com.hs.sfzy.controller;

import com.hs.sfzy.entity.ChargingStandards;
import com.hs.sfzy.until.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.hs.sfzy.service.ChargingStandardsService;

import java.util.List;

@RestController
@RequestMapping("chargingStandards")
public class ChargingStandardsController {
    @Autowired
    private ChargingStandardsService chargingStandardsService;
    @GetMapping()
    public R getChargingStandardsByConsultantId(Integer consultantId) {
      List<ChargingStandards> list= chargingStandardsService.getChargingStandardsByConsultantId(consultantId);
      return R.ok(list);
    }
}
